<%@ page language="java" import="java.util.*" pageEncoding="utf-8" isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> 
 <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> 
 <%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <link rel="stylesheet" href="<s:url value="/resources"/>/css/innerstyle.css" type="text/css" />
    <link rel="stylesheet" type="text/css" media="screen" href="<s:url value="/resources"/>/css/cupertino/jquery-ui.custom.min.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="<s:url value="/resources"/>/css/ui.jqgrid.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="<s:url value="/resources"/>/css/ui.multiselect.css" />
    <script type="text/javascript" src="<s:url value="/resources"/>/js/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="<s:url value="/resources"/>/js/jquery-ui.custom.min.js"></script>  
    <script type="text/javascript" src="<s:url value="/resources"/>/js/i18n/grid.locale-cn.js"></script> 
    <script type="text/javascript" src="<s:url value="/resources"/>/js/jquery.jqGrid.min.js"></script>
   
    <script type="text/javascript" src="<s:url value="/resources"/>/js/i18n/jquery.ui.datepicker-zh-CN.js"></script>
    <title>批量提报</title>
    <style type="text/css">
        .noticetable
        {
            float: left;
            border: 0px;
            cellpadding: 1px;
            cellspacing: 1px;
            width: 500px;
        }
        .noticecontent
        {
            float: left;
            border: 0px;
            margin: 5px;
            width: 300px;
            position: relative;
        }
        #subject
        {
            text-align: center;
        }
        #postdate
        {
            position: absolute;
            top: 15px;
            right: 1px;
        }
        #content
        {
        }

        .ui-menu-item table td
        {
            width: 100px;
        }
        body
        {
            font-size: 12px;
        }
        #tongj
        {
            font-size: 16px;
        }
        .ui-autocomplete-loadin .ui-autocomplete-loading
        {
            background: white url('../images/ui-anim_basic_16x16.gif') right center no-repeat;
        }
        .ui-autocomplete
        {
            max-height: 200px;
            overflow-y: auto;
            overflow-x: hidden;
        }
        
        .floatbox {

            background-color: rgb(92, 156, 204);

            height: 30px;

            width: 1400px;

            position: fixed;

            bottom: 0px;

            left: auto;

            right: auto;

            line-height: 30px;

            text-align: center;

          
        }
    </style>
    
    <script src="<s:url value="/resources"/>/js/grid.locale-cn.js" type="text/javascript"></script>
    <script src="<s:url value="/resources"/>/js/jquery.jqgrid.js" type="text/javascript"></script>
    <script src="<s:url value="/resources"/>/js/jquery.ui.core.js" type="text/javascript"></script>
    <script src="<s:url value="/resources"/>/js/jquery.ui.widget.js" type="text/javascript"></script>
    <script src="<s:url value="/resources"/>/js/jquery.ui.position.js" type="text/javascript"></script>
    <script src="<s:url value="/resources"/>/js/jquery.ui.autocomplete.js" type="text/javascript"></script>
    <link id="skin" rel="stylesheet" href="<s:url value="/resources"/>/css/Skins/Blue/jbox.css" />
     <script type="text/javascript" src="<s:url value="/resources"/>/js/jquery.jBox-2.2.min.js"></script>
    <script type="text/javascript">
       
        var lastsel;
        $(function ()
        {

            $('#noticegrid').jqGrid({
                url: '/mtjyqt/jhtbedit/rcpltbList?OperateCode=GETTiBXX&wenjbh=' + $('#hidWenJBH').val()+'&menuid='+$('#hidMenu').val(),
                datatype: 'json',
                mtype: 'GET',
                colNames: ['索引', '邀约合同号', '受理代码', '发货单位', '发货人', '发站', '收货单位', '省部', '到站', '品名', '吨数', '车数', '换装港', '终到港', '专用线', '报价', '备注', '指定人员', '是否校验', '提报状态', '验证信息', '提报类型'],
                colModel: [
                ////                                                {name:'act',index:'act', width:40,sortable:false},
                                                { name: 'sysid', index: 'sysid', width: 10, hidden: true },
                                                { name: 'hetddh', index: 'hetddh', sortable: false, width: 200, editable: true },
                                                { name: 'shoulhm', index: 'shoulhm', sortable: false, width: 80, editable: true },
                                                { name: 'fahdwmch', index: 'fahdwmch', sortable: false, width: 250, editable: true },
                                                { name: 'fahr', index: 'fahr', sortable: false, width: 250, editable: true },
                                                { name: 'fazhmch', index: 'fazhmch', sortable: false, width: 60, editable: true },
                                                { name: 'shouhdwmch', index: 'shouhdwmch', sortable: false, width: 300, editable: true },
                                                { name: 'fahdwshb', index: 'fahdwshb', sortable: false, width: 80, editable: true },
                                                { name: 'daozh', index: 'daozh', sortable: false, width: 60, editable: true },
                                                { name: 'meizh', index: 'meizh', sortable: false, width: 80, editable: true },
                                                { name: 'huowdsh', index: 'huowdsh', sortable: false, width: 60, editable: true },
                                                { name: 'chesh', index: 'chesh', sortable: false, width: 60, editable: true },
                                                { name: 'huanzhg', index: 'huanzhg', sortable: false, width: 50, editable: true },
                                                { name: 'zhongdg', index: 'zhongdg', sortable: false, width: 50, editable: true },
                                                { name: 'zhuanyxmch', index: 'zhuanyxmch', sortable: false, width: 50, editable: true },
                                                { name: 'baoj', index: 'baoj', sortable: false, width: 30, editable: true },
                                                { name: 'beizh', index: 'beizh', sortable: false, width: 50, editable: true },
                                                { name: 'zhidry', index: 'zhidry', sortable: false, width: 200, editable: true },
                                                { name: 'shifjytg', index: 'shifjytg', sortable: false, width: 80 ,formatter: "select", editoptions:{value:"0:未校验;1:已校验"} },
                                                { name: 'shiftb', index: 'shiftb', sortable: false, width: 80 ,formatter: "select", editoptions:{value:"0:未提报;1:已提报"} },
                                                { name: 'shifyy', index: 'shifyy', sortable: false, width: 300 } , 
{ name: 'yaoylx', index: 'yaoylx', sortable: false, width: 200, editable: true, hidden: true }
                                                ],
                multiselect: true, sortname: 'sysid', recordpos: 'left',
                rowNum: 1000, viewrecords: true, autowidth: false,
                shrinkToFit: true, width: 1400, height: "100%",
                multiboxonly: true,pager: '#noticegridpager',
                jsonReader: { repeatitems: false, id: 'sysid' },
                caption: '合同',
                editurl: "/mtjyqt/jhtbedit/business?OperateCode=UPDATES",
                onSelectAll: function ()
                {
                    jQuery('#noticegrid').jqGrid('saveRow', lastsel);
                    tongj();
                },
                onSelectRow: function (id)
                {

                    if (id && id !== lastsel)
                    {
                        jQuery('#noticegrid').jqGrid('saveRow', lastsel);
                        tongj();
                        jQuery('#noticegrid').jqGrid('editRow', id, {
                            keys: true,
                            oneditfunc: function (id)
                            {
                                //邀月合同号
                                $("#" + id + "_hetddh").autocomplete({
                                    //source: "/mtjyqt/jhtbedit/piltbAutoComplete?type=hetbh&leix=${tltype}&shouhdwmch=" + $("#" + id + "_shouhdwmch").val() + "&nianf=" + $("#tiby").text(),
                                   
                                    source: encodeURI("/mtjyqt/jhtbedit/piltbAutoComplete?type=hetbh&leix=${tltype}&shouhdwmch=" + $("#" + id + "_shouhdwmch").val() + "&fahdwmc=" + $("#" + id + "_fahr").val() + "&wenjid=" + $('#hidWenJBH').val()) ,
                                    		
                                    minLength: 0,
                                    focus: function (event, ui)
                                    {
                                        $("#" + id + "_hetddh").val(ui.item.hetbh);
                                        return false;
                                    },
                                    select: function (event, ui)
                                    {
                                        $("#" + id + "_hetddh").val(ui.item.hetbh);
                                        return false;
                                    },
                                    open: function()
                                    {                
                                        $('.ui-autocomplete').css('width', '770px');             
                                    } 
                                }).bind("click", function () { $("#" + id + "_hetddh").autocomplete("search", ""); });

                                if ($("#" + id + "_hetddh").data("autocomplete"))
                                {
                                    $("#" + id + "_hetddh").data("autocomplete")._renderItem = function (ul, item)
                                    {
                                        return $("<li></li>").data("item.autocomplete", item)
                                       .append("<a><table><tr><td>" + item.hetbh + "</td><td>" + item.chumdwmc + "</td><td>" + item.shouhdwmc + "</td><td>" + item.shul + "</td><td>" + item.fazmch + "</td><td>" + item.daozmch + "</td></tr></table></a>")
                                       .appendTo(ul);
                                    }
                                };
                                //省部
                                $("#" + id + "_fahdwshb").autocomplete({
                                    source: "/mtjyqt/jhtbedit/piltbAutoComplete?type=shb",
                                    minLength: 0,
                                    open: function()
                                    {                
                                        $('.ui-autocomplete').css('width', '100px');             
                                    } 
                                }).bind("click", function () { $("#" + id + "_fahdwshb").autocomplete("search", ""); });
                                //发货单位
                                $("#" + id + "_fahr").autocomplete({
                                    source: "/mtjyqt/jhtbedit/piltbAutoComplete?type=fahr",
                                    minLength: 0
                                }).bind("click", function () { $("#" + id + "_fahr").autocomplete("search", ""); });
                                //收货单位
                                $("#" + id + "_shouhdwmch").autocomplete({
                                    source: "/mtjyqt/jhtbedit/piltbAutoComplete?type=shouhdwmch",
                                    minLength: 0
                                }).bind("click", function () { $("#" + id + "_shouhdwmch").autocomplete("search", ""); });
                                //品名
                                $("#" + id + "_meizh").autocomplete({
                                    source: "/mtjyqt/jhtbedit/piltbAutoComplete?type=meizh",
                                    minLength: 0,
                                    open: function()
                                    {                
                                        $('.ui-autocomplete').css('width', '100px');             
                                    } 
                                }).bind("click", function () { $("#" + id + "_meizh").autocomplete("search", ""); });
                                //换转港
                                $("#" + id + "_huanzhg").autocomplete({
                                    source: "/mtjyqt/jhtbedit/piltbAutoComplete?type=huanzhg",
                                    minLength: 0
                                }).bind("click", function () { $("#" + id + "_huanzhg").autocomplete("search", ""); });
                                //终到港
                                $("#" + id + "_zhongdg").autocomplete({
                                    source: "/mtjyqt/jhtbedit/piltbAutoComplete?type=zhongdg",
                                    minLength: 0
                                }).bind("click", function () { $("#" + id + "_zhongdg").autocomplete("search", ""); });
                                //指定人员
                                $("#" + id + "_zhidry").autocomplete({
                                    source: "/mtjyqt/jhtbedit/piltbAutoComplete?type=zhidry",
                                    minLength: 0
                                }).bind("click", function () { $("#" + id + "_zhidry").autocomplete("search", ""); });
                                //发站(增加缓存)
                                var cachefzh = {},
			                                                                                            lastXhrfzh;
                                $("#" + id + "_fazhmch").autocomplete({
                                    minLength: 0,
                                    source: function (request, response)
                                    {
                                        var term = request.term;
                                        if (term in cachefzh)
                                        {
                                            response(cachefzh[term]);
                                            return;
                                        }
                                        lastXhrfzh = $.getJSON("/mtjyqt/jhtbedit/piltbAutoComplete?type=fzh", request, function (data, status, xhr)
                                        {
                                            cachefzh[term] = data;
                                            if (xhr === lastXhrfzh)
                                            {
                                                response(data);
                                            }
                                        });
                                    },
                                    open: function()
                                    {                
                                        $('.ui-autocomplete').css('width', '100px');             
                                    } 
                                }).bind("click", function () { $("#" + id + "_fazhmch").autocomplete("search", ""); });
                                //到站(增加缓存)
                                var cachedzh = {},
			                                                                                            lastXhrdzh;
                                $("#" + id + "_daozh").autocomplete({
                                    minLength: 0,
                                    source: function (request, response)
                                    {
                                        var term = request.term;
                                        if (term in cachedzh)
                                        {
                                            response(cachedzh[term]);
                                            return;
                                        }
                                        lastXhrdzh = $.getJSON("/mtjyqt/jhtbedit/piltbAutoComplete?type=dzh", request, function (data, status, xhr)
                                        {
                                            cachedzh[term] = data;
                                            if (xhr === lastXhrdzh)
                                            {
                                                response(data);
                                            }
                                        });
                                    },
                                    open: function()
                                    {                
                                        $('.ui-autocomplete').css('width', '100px');             
                                    } 
                                }).bind("click", function () { $("#" + id + "_daozh").autocomplete("search", ""); });

                            }
                        });
                        lastsel = id;

                    }
                }
            });
            
            //$('#noticegrid').jqGrid('navGrid',"#noticegridpager",{excel:true,edit:false,add:false,del:false});

            //var saveTimer = setInterval("page_submit_interval()", 60000);
            
        });


        function arrayToJson(o)
        {
            var r = [];
            if (typeof o == "string") return "\"" + o.replace(/([\'\"\\])/g, "\\$1").replace(/(\n)/g, "\\n").replace(/(\r)/g, "\\r").replace(/(\t)/g, "\\t") + "\"";
            if (typeof o == "object")
            {
                if (!o.sort)
                {
                    for (var i in o)
                        r.push(i + ":" + arrayToJson(o[i]));
                    if (!!document.all && !/^\n?function\s*toString\(\)\s*\{\n?\s*\[native code\]\n?\s*\}\n?\s*$/.test(o.toString))
                    {
                        r.push("toString:" + o.toString.toString());
                    }
                    r = "{" + r.join() + "}";
                } else
                {
                    for (var i = 0; i < o.length; i++)
                    {
                        r.push(arrayToJson(o[i]));
                    }
                    r = "[" + r.join() + "]";
                }
                return r;
            }
            return o.toString();
        }


//得到所有表格数据
function getAllDataToJosn(){
    var chkdata = [];
    jQuery('#noticegrid').jqGrid('saveRow', lastsel);
   
    var rows = jQuery("#noticegrid").jqGrid('getRowData');
  
    $.each(rows, function (i, n)
    {
    	
        if(n.shiftb == "0"){
            chkdata.push(n);
        }
      //  alert(chkdata);
    });
  
    var b = arrayToJson(chkdata);
    //alert(b);
    return b;
}

//得到选择表格数据
function getSelectdataToJosn(){
    var chkdata = [];  //选择的记录
    var postdata; //回发的数据
    
    jQuery('#noticegrid').jqGrid('saveRow', lastsel);
    var ids = jQuery('#noticegrid').jqGrid('getGridParam', 'selarrrow');

    $.each(ids, function (i, n)
    {
        var row = jQuery("#noticegrid").jqGrid('getRowData', n);
      
        jQuery("#noticegrid").jqGrid('saveRow', n);
        if(row.shiftb == "0"){
              
            chkdata.push(jQuery("#noticegrid").jqGrid('getRowData', n));
             
        }
    });
  //alert(arrayToJson(chkdata));
    return arrayToJson(chkdata);
}


function page_submit_interval()
{
     var chkdata = []; 
    var rows = jQuery("#noticegrid").jqGrid('getRowData');
     $.each(rows, function (i, n)
    {
        if(n.shiftb == "0"&& n.sysid!=lastsel){

            chkdata.push(n);
        }
    });
    var b = arrayToJson(chkdata);

    $.ajax({
        type: "POST",
        url: "/mtjyqt/jhtbedit/business?OperateCode=UPDATE&wenjbh=" + $('#hidWenJBH').val()+'&menuid='+$('#hidMenu').val(),
        data: { dd: b },
        success: function (msg)
        {

        }
    });
}


function page_submit()
{
//            jQuery('#noticegrid').jqGrid('saveRow', lastsel);
//            var rows = jQuery("#noticegrid").jqGrid('getRowData');
//            var b = arrayToJson(rows);
    var b = getAllDataToJosn();
    $.jBox.tip("正在操作中，请等待...", 'loading');
    $.ajax({
        type: "POST",
        url: "/mtjyqt/jhtbedit/business?OperateCode=UPDATES&wenjbh=" + $('#hidWenJBH').val()+'&menuid='+$('#hidMenu').val(),
        data: { dd: b },
        success: function (msg)
        {
        	 $.jBox.tip(msg,'success');
        }
    });
}

function page_TiB_All()
{
  var chkdata = [];
    jQuery('#noticegrid').jqGrid('saveRow', lastsel);
    var rows = jQuery("#noticegrid").jqGrid('getRowData');

    var flag=true;
    $.each(rows, function (i, n)
    {
        if(n.zhidry=="" || n.zhidry==null){
            flag=false;
        }
        if(n.shiftb == "0"){
            chkdata.push(n);
        }
        
    });
    //if(!flag){
    //     alert("指定审批人员不能为空！");
    //    return;
    //}
    var tbbz = $("#shifzgsp").val();
    if(tbbz==""){
         alert("请选择是否经归口审核！");
        return;
    }
    var b = arrayToJson(chkdata);
    $.jBox.tip("正在操作中，请等待...", 'loading');
    $.ajax({
        type: "POST",
        url: "/mtjyqt/jhtbedit/business?OperateCode=TiB&wenjbh=" + $('#hidWenJBH').val()+'&menuid='+$('#hidMenu').val()+'&tbbz='+tbbz,
        data: { dd: b },
        success: function (msg)
        {
            $('#noticegrid').trigger("reloadGrid");
            $.jBox.tip(msg,'success');
        }
    });


}

function page_TiB_Select()
{
var chkdata = [];  //选择的记录
    var postdata; //回发的数据
    jQuery('#noticegrid').jqGrid('saveRow', lastsel);
    var ids = jQuery('#noticegrid').jqGrid('getGridParam', 'selarrrow');
    if(ids.length == 0){
        alert("没有选中任何值！");
        return;
    }
    var tbbz = $("#shifzgsp").val();
    if(tbbz==""){
         alert("请选择是否经归口审核！");
        return;
    }
    var flag=true;
    $.each(ids, function (i, n)
    {
        var row = jQuery("#noticegrid").jqGrid('getRowData', n);
        if(row.ZHIDRY=="" || row.ZHIDRY==null){
            flag=false;
        }
        if(row.shiftb == "0"){
            chkdata.push(jQuery("#noticegrid").jqGrid('getRowData', n));
        }
    });
    
   // if(!flag){
        // alert("指定审批人员不能为空！");
       // return;
   // }

    var postdata = arrayToJson(chkdata);
    $.jBox.tip("正在操作中，请等待...", 'loading');
    $.ajax({
        type: "POST",
        url: "/mtjyqt/jhtbedit/business?OperateCode=TiB&wenjbh=" + $('#hidWenJBH').val()+'&menuid='+$('#hidMenu').val()+'&tbbz='+tbbz,
        data: { dd: postdata },
        success: function (msg)
        {
            $('#noticegrid').trigger("reloadGrid");
            $.jBox.tip(msg,'success');
        }
    });
}


//删除选中的记录
function recordDel()
{
//            var chkdata = []; ; //选择的记录
//            var postdata; //回发的数据
//            jQuery('#noticegrid').jqGrid('saveRow', lastsel);
//            var ids = jQuery('#noticegrid').jqGrid('getGridParam', 'selarrrow');
//            $.each(ids, function (i, n)
//            {
//                chkdata.push(jQuery("#noticegrid").jqGrid('getRowData', n));
//            });
//            postdata = arrayToJson(chkdata);
    var postdata = getSelectdataToJosn();
    
    $.jBox.tip("正在操作中，请等待...", 'loading');
    $.ajax({
        type: "POST",
        url: "/mtjyqt/jhtbedit/business?OperateCode=Del&wenjbh=" + $('#hidWenJBH').val()+'&menuid='+$('#hidMenu').val(),
        data: { dd: postdata },
        success: function (msg)
        {
            if (msg == "删除成功")
            {
                $('#noticegrid').trigger("reloadGrid");
            }
            $.jBox.tip(msg,'success');
        }
    });
}

function page_Verify()
{
//            jQuery('#noticegrid').jqGrid('saveRow', lastsel);
//            var rows = jQuery("#noticegrid").jqGrid('getRowData');
//            var b = arrayToJson(rows);
    var b = getAllDataToJosn();
    $.jBox.tip("正在操作中，请等待...", 'loading');
    $.ajax({
        type: "POST",
        url: "/mtjyqt/jhtbedit/business?OperateCode=YanZh&wenjbh=" + $('#hidWenJBH').val()+'&menuid='+$('#hidMenu').val(),
        data: { dd: b },
        success: function (msg)
        {
            $('#noticegrid').trigger("reloadGrid");
          
         // 模拟2秒后完成操作
           $.jBox.tip(msg,'success');
        // alert(msg);
        }
    });

}

//导出
function page_toExcel1(){
    var b = getAllDataToJosn();
    alert("ee");
    $.ajax({
        type: "POST",
        url: "/mtjyqt/jhtbedit/business?OperateCode=UPDATE&wenjbh=" + $('#hidWenJBH').val()+'&menuid='+$('#hidMenu').val(),
        data: { dd: b },
        success: function (msg){
            document.getElementById("btnReport").click();
        }
    });
}
function  page_toExcel(){
 
	 
		myform.action="/mtjyqt/jhtbedit/toExcel?OperateCode=toExcel&wenjbh=" + $('#hidWenJBH').val()+'&menuid='+$('#hidMenu').val();
		myform.submit();
/*     var b = getAllDataToJosn();
    $.ajax({
        type: "POST",
        url: "/mtjyqt/jhtbedit/toExcel?OperateCode=toExcel&wenjbh=" + $('#hidWenJBH').val()+'&menuid='+$('#hidMenu').val(),
        data: { dd: b },
        success: function (msg){
            
        }
    }); */
}
function setXuanZRY()
{

    var xuanZRY = $("#ddlZhiDRY option:selected").text();

    var ids = jQuery("#noticegrid").jqGrid('getDataIDs');
    //alert(ids.length);
    for (var i = 0; i < ids.length; i++)
    {

        jQuery("#noticegrid").jqGrid('setRowData', ids[i], { zhidry: xuanZRY });
    }
}

function setTbbz()
{

    var tbbz = $("#shifzgsp option:selected").text();

    var ids = jQuery("#noticegrid").jqGrid('getDataIDs');
    //alert(ids.length);
    for (var i = 0; i < ids.length; i++)
    {

        jQuery("#noticegrid").jqGrid('setRowData', ids[i], { zhidry: xuanZRY });
    }
}

function tongj()
{
    var cnt = 0, dsh = 0, chesh = 0;
    var ids = jQuery('#noticegrid').jqGrid('getGridParam', 'selarrrow');
    $.each(ids, function (i, n)
    {
        cnt++;
        var row = jQuery("#noticegrid").jqGrid('getRowData', n);
        dsh += parseInt(row.huowdsh, 10);
        chesh += parseInt(row.chesh, 10);
    });
    $("#tongj").html('已选条数：' + cnt + ', 车数：' + chesh + ', 吨数：' + dsh);
}




    </script>
</head>
<body>
    <form name="myform" method="post" action="TiBMX_Edit.aspx?FileID=8548&amp;Operate=Edit&amp;menuid=JHTB_RiChPLShB" id="myform">
<div>

</div>

    
    <div>
        <p style="line-height: 13px;">
            填写说明：</p>
        <p style="line-height: 1px;">
            1、发货人、收货单位、发站、到站、品名可根据拼音码或关键字进行快速检索。</p>
        <p style="line-height: 1px;">
            2、请在运力需求提报前校验数据，如果相关数据没有在本系统定制，将提示数据有误。</p>
    <p style="line-height: 1px; font-size:14px; color: Red;">
               3、2014年4月起，运力需求须与交易合同进行关联，规则如下：（1）运力需求的提报的月份需与交易完成的月度合同月份一致（2）日常邀约合同对应提报运力需求月份的合同量要大于零。如有疑问请联系交易处：0351-6829925</p>
    </div>
    <div>
        <input type="button" value="删除" id="btnDel" onclick="recordDel();" />
        <input type="button" value="校验数据" id="btnVerify" onclick="page_Verify();" />
        <input type="button" value="全部保存" id="btnAllSub" onclick="page_submit();" />
        <input type="button" value="提报" id="btnTiB" onclick="page_TiB_Select();" />
        <input type="button" value="全部提报" id="btnAllTiB" onclick="page_TiB_All();" />
        <input type="button" value="导出EXCEL" id="Button1" onclick="page_toExcel();" />
        <input type="submit" name="btnReport" value="导出EXCEL" id="btnReport" style="display:none" onclick="toExcel();" />
        
        <!-- 指定审批人员：
        <select name="ddlZhiDRY" id="ddlZhiDRY" onchange="setXuanZRY();">
	<option selected="selected" value=""></option>
	<option value="26668">(计划二处)孙亚君</option>
	<option value="5285">(计划二处)孙旭浩</option>
	<option value="5274">(计划三处)田峰</option>
	<option value="22764">(计划二处)刘拴福</option>
	<option value="5094">(计划一处)柏瑞华</option> -->
	 是否经归口审核：
        <select name="shifzgsp" id="shifzgsp">
			<option selected="selected" value="">请选择</option>
			<option value="1">经归口审核</option>
			<option value="0">不经归口审核</option>
		</select>
        <span id="tongj" style="float: right; margin-top: -10px;"></span><input type="hidden" name="hidWenJBH" id="hidWenJBH" value="${wenjbh}" /><input type="hidden" name="hidMenu" id="hidMenu" value="JHTB_RiChPLShB" />
    </div>
    <!-- <span id="tiby">
        2014年06月份
    </span> -->
    <div class="noticetable">
    
        <table id="noticegrid">
        </table>
        <div id="noticegridpager">
        </div>
    </div>
    <div id="divcontent" class="noticecontent">
        <h3 id="subject">
        </h3>
        <span id="postdate"></span>
        <div id="content">
        </div>
    </div>
    <div class='floatbox'>
        <input type="button" value="删除" id="Button2" onclick="recordDel();" />
        <input type="button" value="校验数据" id="Button3" onclick="page_Verify();" />
        <input type="button" value="全部保存" id="Button4" onclick="page_submit();" />
        <input type="button" value="提报" id="Button5" onclick="page_TiB_Select();" />
        <input type="button" value="全部提报" id="Button6" onclick="page_TiB_All();" />
        <input type="button" value="导出EXCEL" id="Button7" onclick="page_toExcel();" />
    </div>
    </form>
</body>
</html>

